<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
  <meta http-equiv="expires" content="0">
  <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1,user-scalable=no">
  <title></title>
  <script type="text/javascript" src="../js/encryption/crypto-js/crypto-js.min.js"></script>
  <script type="text/javascript" src="../js/encryption/api.js"></script>
  <script type="text/javascript" src="../js/encryption/util.js"></script>
  <link rel="stylesheet" href="css/common.css">
  <link rel="stylesheet" href="iconfont/iconfont.css">
  <link rel="stylesheet" href="vant/index.css">
  <link rel="stylesheet" href="css/xsdCommon.css">
  <link rel="stylesheet" href="css/element.css">
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <style>
    .section_div {
      padding: 0 16px;
      max-width: 595px;
    }
    .upload {
      width: 96%;
      margin: 0 auto;
      display: flex;
    }
    .empower {
      width: 90%;
      margin: 10px auto;
      display: flex;
    }

    .empowerBtn {
      display: flex;
      margin-right: 5px;
      align-items: center;
      justify-content: center;
    }

    /* .empowerContent p {
      line-height: 0;
    } */

    .van-field--disabled .van-field__control,
    .van-field__right-icon {
      color: rgba(0, 0, 0, 0.7);
    }

    .resultItem {
      margin: 15px 0;
      padding: 0 10px 0 10px;
      color: #000000;
      font-size: 16px;
    }

    .index_item_2 {
      margin-top: 6%;
      margin-bottom: 3%;
    }

    .index_ym {
      width: 85%;
      height: 100%;
      margin: 0 auto;
      margin-top: 30px;
      background-color: #ffffff;
      padding-left: 10px;
      padding-top: 10px;
      border-radius: 10px;
      flex-wrap: wrap;
      justify-content: space-around;
      box-shadow: 0 0 20px #4bbde8;
      font-size: 15px;
      color: #8c8c8c;
    }

    .index_cpp0 {
      background-image: url(img/newPage/zc.png);
      width: 100%;
      height: 45%;
      background-repeat: no-repeat
    }

    .index_cpp2 {
      background-image: url(img/newPage/2/bg.jpg)
    }

    .index_cpp3 {
      background-image: url(img/newPage/3/bg.jpg)
    }

    .firstStep3 {
      width: 85%;
      margin: 0 auto;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      background-color: white;
      overflow: visible;
      padding: 15px;
      box-sizing: border-box;
      position: relative;
    }

    .secondStep3 {
      width: 85%;
      margin: 0 auto;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      background-color: white;
      overflow: visible;
      padding: 15px;
      position: relative;
      box-sizing: border-box;
    }

    .firstStep2 {
      width: 85%;
      margin: 0 auto;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      background-color: white;
      overflow: visible;
      padding: 15px;
      box-sizing: border-box;
      position: relative;
    }

    .secondStep2 {
      width: 85%;
      margin: 0 auto;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
      background-color: white;
      overflow: visible;
      padding: 15px;
      position: relative;
      box-sizing: border-box;
    }

    .firstStep0 {
      width: 90%;
      margin-left: 8%;
      border-radius: 15px;
      box-shadow: 0 0 35px #8c8c8c;
      background-color: white;
      overflow: hidden;
      padding-top: 10px;
      padding-left: 10px;
    }

    .secondStep0 {
      width: 90%;
      margin-left: 8%;
      border-radius: 15px;
      box-shadow: 0 0 35px #8c8c8c;
      background-color: white;
      overflow: hidden;
      padding-top: 10px;
      padding-left: 8px;
    }

    .baseInfo {
      width: 90%;
      margin-left: 5px;
    }
  </style>
</head>

<body>
  <div id="app" v-cloak ref="cpp">
    <van-skeleton title :row="10" :loading="loading">
      <div :class="{index_cpp:true,index_cpp0:style0,index_cpp2:style2,index_cpp3:style3}">
        <div class="indexMenuTop">
          <div class="newPage_logo">
            <img :src="logoUrl" style="width: 60%;background-repeat: no-repeat" />
          </div>
          <div class="newPage_logo_2" style="margin-top: 15px;" v-if='style == 0'>
            <img :src="nameLogoUrl" style="width: 90%;" />
          </div>
        </div>
        <div class="index_page_cs" style="margin-top: 25px">
          <div :class="{baseInfo:style0}" v-if="active==0">
            <div v-if="firstStep" :class="{firstStep0:style0,firstStep2:style2,firstStep3:style3}">
              <h4 style="padding-left: 15px;" v-if='style !=0'>营业执照</h4>
              <div v-if='style !=0'
                   style="position: absolute;width: 50px;height: 25px;border-radius: 4px;left: -40px;top: 20px;background-color: #e60012;">
              </div>
              <van-cell-group>
                <div class="upload">
                  <div class="item" @click="getUpload(imgFront)" style="text-align: center">
                    <img :src="imgFront.src" style="width: 60%;">
                  </div>
                </div>
                <van-field v-model="baseInfo.custName" :disabled="true" left-icon="contact" required clearable
                  placeholder="姓名">
                </van-field>
                <van-field v-model="baseInfo.custId" :disabled="true" left-icon="idcard" required clearable
                  placeholder="身份证号">
                </van-field>
                <van-field v-model="baseInfo.custPhone" :disabled="true" type="number" left-icon="phone-o" required
                  clearable placeholder="手机号">
                </van-field>
                <van-field v-model="baseInfo.companyName"  required clearable
                           label-width="65" placeholder="请输入企业全称">
                </van-field>
                <van-field v-model="baseInfo.regNum"  required clearable
                           label-width="65" placeholder="请输入统一社会信用代码"></van-field>
                <van-field v-model="baseInfo.setDate"  required clearable readonly
                           label-width="65" placeholder="注册日期"></van-field>
              </van-cell-group>
              <div class="index_item_2">
                <van-button round class="font_btn"
                  :style="{backgroundColor: buttonColor[style],color: 'white',marginLeft: '45px',marginBottom: '10px'}"
                  @click="firstNext">下一步</van-button>
              </div>
            </div>

            <div v-if="secondStep" :class="{firstStep0:style0,firstStep2:style2,firstStep3:style3}">
              <h4 style="padding-left: 15px;" v-if='style !=0'>填写信息</h4>
              <div v-if='style !=0'
                   style="position: absolute;width: 50px;height: 25px;border-radius: 4px;left: -40px;top: 20px;background-color: #e60012;">
              </div>
              <van-cell-group>
                <van-field v-model="baseInfo.custName" :disabled="true" left-icon="contact" required clearable
                           placeholder="姓名">
                </van-field>
                <van-field v-model="baseInfo.custId" :disabled="true" left-icon="idcard" required clearable
                           placeholder="身份证号">
                </van-field>
                <van-field v-model="baseInfo.custPhone" :disabled="true" type="number" left-icon="phone-o" required
                           clearable placeholder="手机号">
                </van-field>
              <div v-if="baseInfo.custCode=='0'&&pageCode == '2'">
                <van-cell title="请选择办理网点：" value="" label=""></van-cell>
                <van-field v-model="baseInfo.areaName" name="streetName" v-if="orgCd=='239009999'" label="区域"
                           clearable label-width="120px" :readonly="true" right-icon="arrow" @click="areaShow = !areaShow"
                           placeholder="请输入区域" :rules="[{ required: true, message: '请填写区域' }]">
                </van-field>
                <van-field v-model="baseInfo.streetName" name="streetName" label="乡镇/街道" clearable label-width="120px"
                           :readonly="true" right-icon="arrow" @click="streetShowTip = !streetShowTip" placeholder="请输入乡镇/街道"
                           :rules="[{ required: true, message: '请填写请乡镇/街道' }]">
                </van-field>
                <van-field v-model="baseInfo.wdIdName" name="wdIdName" label="网点" clearable label-width="120px"
                           :readonly="true" right-icon="arrow" @click="bankShow = !bankShow" placeholder="请输入网点"
                           :rules="[{ required: true, message: '请填写请网点' }]">
                </van-field>
                <van-field v-model="baseInfo.khjlName" name="khjlName" label="客户经理" clearable label-width="120px"
                           :readonly="true" right-icon="arrow" @click="khjlShow = !khjlShow" placeholder="请输入客户经理"
                           :rules="[{ required: true, message: '请填写请客户经理' }]">
                </van-field>
              </div>
              <div v-if="baseInfo.custCode=='0'&&pageCode == '1' && !isWhiteList">
                <van-field v-model="baseInfo.custAddress" :disabled="true" left-icon="location-o" required clearable
                           placeholder="省市">
                </van-field>
                <van-field v-model="baseInfo.custArea" left-icon="location-o" @click="showArea = true" required
                           label-width="100" clearable :disabled="true" placeholder="区域">
                </van-field>
                <van-action-sheet v-model="showArea" :actions="area" @select="selectArea"></van-action-sheet>
                <van-field v-if="streetShow" v-model="baseInfo.custStreet" left-icon="location-o"
                           @click="showStreet = true" required label-width="100" clearable :disabled="true"
                           placeholder="街道/乡镇">
                </van-field>
                <van-action-sheet v-model="showStreet" :actions="street" @select="selectStreet"></van-action-sheet>
                <van-field v-if="jwhShow" v-model="baseInfo.custJwh" left-icon="location-o" @click="showJwh = true"
                           required label-width="100" clearable :disabled="true" placeholder="居/村委会"></van-field>
                <van-action-sheet v-model="showJwh" :actions="jwh" @select="selectJwh"></van-action-sheet>
                <van-field v-model="baseInfo.detailAdd" left-icon="location-o" required label-width="100" clearable
                           placeholder="详细地址"></van-field>
              </div>

              <div v-if="baseInfo.custCode=='0'&&pageCode == '3' ">
                <van-field v-model="baseInfo.firstOrgName" name="firstOrgName"  label="" required
                           clearable label-width="2px" :readonly="true" left-icon="location-o" right-icon="arrow" @click="firstOrgShow = !firstOrgShow"
                           placeholder="请输入办理机构" :rules="[{ required: true, message: '请填写办理机构' }]">
                </van-field>
              </div>

              <!--下拉选择贷款期限-->
              <van-cell-group v-if="loanTermSwitch">
                <van-field v-model="baseInfo.loanTermName" :disabled="true" left-icon="clock-o" required
                           clearable label-width="100" placeholder="贷款期限" @click="showLoanTerm = true"></van-field>
                <van-action-sheet v-model="showLoanTerm" :actions="loanTerm" @select="selectLoanTerm">
                </van-action-sheet>
              </van-cell-group>
              <van-field v-model="baseInfo.khjlNum" left-icon="user-o" label-width="100" clearable
                         placeholder="营销人员手机号"></van-field>
              </van-cell-group>
              <div class="index_item_2">
                <van-button round class="font_btn"
                            :style="{backgroundColor: buttonColor[style],color: 'white',marginLeft: '45px',marginBottom: '10px'}"
                            @click="secondNext">{{firstNextButton}}</van-button>
              </div>
            </div>

            <div v-if="thirdStep" :class="{secondStep0:style0,secondStep2:style2,secondStep3:style3}">
              <h4 style="padding-left: 15px;" v-if='style !=0'>填写家庭成员信息</h4>
              <div v-if='style !=0'
                style="position: absolute;width: 50px;height: 25px;border-radius: 4px;left: -40px;top: 20px;background-color: #e60012;">
              </div>
              <div>
                <p style="font-size: 16px;font-color: red;text-indent: 0em;margin-top: 10px;text-indent:2em;">
                  为保证贷款申请顺利通过，请正确录入联系人信息！</p>
              </div>
              <van-cell-group>
                <van-field v-model="baseInfo.familyRelationName" :disabled="true" left-icon="friends-o" required
                  clearable label-width="100" placeholder="联系人关系" @click="showRelation = true"></van-field>
                <van-action-sheet v-model="showRelation" :actions="relation" @select="selectRelation">
                </van-action-sheet>
                <van-field v-model="baseInfo.familyName" left-icon="contact" required clearable label-width="100"
                  placeholder="联系人姓名"></van-field>
                <van-field v-model="baseInfo.familyId" left-icon="idcard" required clearable label-width="100"
                  placeholder="联系人身份证号"></van-field>
                <van-field v-model="baseInfo.familyPhone" left-icon="phone-o" required clearable type="number"
                  label-width="100" placeholder="联系人手机号"></van-field>
              </van-cell-group>
              <div class="index_item_2">
                <van-button round class="font_btn"
                  :style="{backgroundColor: buttonColor[style],color: 'white',marginLeft: '15%'}" @click="empowerNext">
                  提 交</van-button>
              </div>
            </div>
          </div>
          <!--测算中页面-->
          <div v-if="active==1&&result&&style==0" style="padding: 20px;text-align: left;font-size: 16px;">
            <div class="index_ym">
              <p>尊敬的客户：</p>
              <p style="text-indent:2em;">您的额度申请进行中，预计时间3分钟，稍后请留意推送消息查询结果。</p>
              <div class="index_item_2" style="text-align: center;">
                <van-button round class="font_btn" style="background-color: #0c80fe;color: white;
                 margin:5px 0 5px 0;" @click="getResult">确 认</van-button>
              </div>
            </div>
          </div>
          <div v-if="active==1&&result&&(style==2||style ==3)" style="padding: 20px;text-align: left;font-size: 16px;">
            <div class="" style="background-color: #ffffff;text-align: center;padding: 30px 20px;">
              <van-image src='img/newPage/load.png' style="width:40%"></van-image>
              <h4>系统正在处理中</h4>
              <p style="color:#888888;line-height:24px;font-size:14px;">您的额度申请正在处理，预计时间3分钟，请您耐心等待，留意推送消息查看结果！</p>
              <div class="index_item_2" style="text-align: center;">
                <van-button round class="font_btn" style="background-color: #e60012;color: white;
                 margin:5px 0 5px 0;" @click="getResult">确 认</van-button>
              </div>
            </div>
          </div>
        </div>
        <tel  :phone="tel"></tel>
      </div>
      <div class="loanFail" v-if="active==1&&!result">
        <div class="loanFailImg">
          <img src="img/fail.png" alt="">
        </div>
        <div class="loanFailText">
          <van-tag color="#f2826a" plain style="font-size: 20px">
            {{loanFailTips}}  <a :href="'tel:' + tel" :style="{color: aTelColor}">{{tel}}</a>
          </van-tag>
          <van-button v-if="true" type="primary" @click="getResult" style="margin-top: 50px">返回</van-button>
        </div>
      </div>
      <!--  征信授权书   -->
      <van-popup v-model="empowerShow" round position="top" style="height:100%;">
        <section class="section_div" id="boardPdf" style="max-width: 595px;word-wrap: break-word;word-break:break-all;">
          <h3 style="width: 100%;text-align: center;">征信授权书</h3>
          <p style="font-size: 16px;text-indent: 0em;font-weight: bold;margin-top: 10px;text-indent:2em;">
            本人已认真阅读本授权书，该授权书以数据电文形式订立，本人已阅读认可本授权书所有条款，<span></span>
            并授权{{bankName}}股份有限公司（以下简称“贵行”）及其下辖机构办理以下业务：
          </p>
          <div>
            <p style="font-size: 16px;text-indent: 0em;margin-top: 10px;text-indent:2em;">
              一、向中国人民银行金融信用信息基础数据库或其他依法设立的征信机构按照《征信业管理<span></span>
              条例》的规定查询和使用全部或部分信息，并有权对查询到的本人信息进行打印、保存和使用。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              二、将本人在履行与其签订的《个人借款合同》和《个人担保合同》中产生的信用信息向中国<span></span>
              人民银行金融信用信息基础数据库或其他依法设立的征信机构提供。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              三、向合法留存本人信息和数据的第三方（包括但不限于向公安机关、其他有权政府机关和监<span></span>
              管机构、贵行的其他关联公司、合作方）查询、了解、核实有关本人的信息，包括但不限于：
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （1）本人的身份信息，包括但不限于姓名、证件类型、证件号码、住所地、电话号码、<span></span>婚姻状况以及其他身份信息；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （2）本人的财产信息，包括但不限于个人状况、财税信息、房产信息、车辆信息、基金、<span></span>
              保险、股票、信托、债券等投资理财信息和负债信息等；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （3）本人在行政机关、事业单位、司法机关、监管部门、中国互联网金融协会等行业自律组<span></span>
              织或其他合法有权机构留存的任何信息，包括但不限于户籍信息、工商信息、诉讼信息、执
              行信息和违法犯罪信息、商业不良信息等被许可查询的各类信息；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （4）本人的社保信息和公积金信息，包括但不限于缴费状态、缴费额度、缴费年限和缴费<span></span>单位等；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （5）本人的通讯号码、在网时长、联系地址、消费记录、欠费信息等通讯信息；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （6）本人在贵行开立的账户信息，包括但不限于账户余额、账户状态和账户交易流水<span></span>信息等。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              四、在授信业务有效期限内或在业务存续期内可以随时查询本人的征信信息，并将查询结果
              用于评价本人的信用状况、授信审批及贷后管理等。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              五、保管业务办理中获取的授权书以及本人相关信息。由于通过网络、手机提供和传输信息存
              在特定的泄密风险，本人已经充分考虑到该风险，愿意承担该风险并使用贵行的服务，
              如果因网络、手机传输通讯故障、计算机病毒感染、黑客攻击窃取资料等贵行无法控制的不可抗<span></span>
              因素导致个人隐私泄露等后果，由本人自行承担。
            </p>
          </div>
          <p style="font-size: 16px;
                      text-indent: 0em;
                      font-weight: bold;
                      margin-top: 10px;
                      text-indent:2em;">
            本人声明：本人已仔细阅读上述所有条款。贵行已经依法向本人提示了相关条款并做出了相应<span></span>说明。
            本人已经完全知悉并充分理解本授权书条款的内容及相应的法律后果，并愿意接受本授权书条款<span></span>的约定。
          </p>
          <p>本人姓名：{{baseInfo.custName}}</p>
          <p>证件名称及号码：{{baseInfo.custId}}</p>
          <p>授权书生效日期：{{nowDate}}</p>

        </section>
        <div style="width: 100%;text-align:center;margin: 10px 0;">
          <van-button v-if="readedButtonShow" type="primary" :disabled="canConfirm" @click="subInfo('boardPdf')">{{confirmText}}
          </van-button>
          <van-button v-if="zxBackButtonShow" type="primary" @click="closeInfo">返回
          </van-button>
        </div>

      </van-popup>
      <!--  再担保授权书   -->
      <van-popup v-model="guaranteeShow" round position="top" style="height:100%;">
        <section class="section_div" id="guaranteePdf" style="max-width: 595px;word-wrap: break-word;word-break:break-all;">
          <h3 style="width: 100%;text-align: center;">再担保授权书</h3>
          <p style="font-size: 16px;text-indent: 0em;font-weight: bold;margin-top: 10px;text-indent:2em;">
            本人已认真阅读本授权书，该授权书以数据电文形式订立，本人已阅读认可本授权书所有条款，<span></span>
            并授权{{bankName}}股份有限公司（以下简称“贵行”）及其下辖机构办理以下业务：
          </p>
          <div>
            <p style="font-size: 16px;text-indent: 0em;margin-top: 10px;text-indent:2em;">
              一、向中国人民银行金融信用信息基础数据库或其他依法设立的征信机构按照《征信业管理<span></span>
              条例》的规定查询和使用全部或部分信息，并有权对查询到的本人信息进行打印、保存和使用。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              二、将本人在履行与其签订的《个人借款合同》和《个人担保合同》中产生的信用信息向中国<span></span>
              人民银行金融信用信息基础数据库或其他依法设立的征信机构提供。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              三、向合法留存本人信息和数据的第三方（包括但不限于向公安机关、其他有权政府机关和监<span></span>
              管机构、贵行的其他关联公司、合作方）查询、了解、核实有关本人的信息，包括但不限于：
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （1）本人的身份信息，包括但不限于姓名、证件类型、证件号码、住所地、电话号码、<span></span>婚姻状况以及其他身份信息；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （2）本人的财产信息，包括但不限于个人状况、财税信息、房产信息、车辆信息、基金、<span></span>
              保险、股票、信托、债券等投资理财信息和负债信息等；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （3）本人在行政机关、事业单位、司法机关、监管部门、中国互联网金融协会等行业自律组<span></span>
              织或其他合法有权机构留存的任何信息，包括但不限于户籍信息、工商信息、诉讼信息、执
              行信息和违法犯罪信息、商业不良信息等被许可查询的各类信息；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （4）本人的社保信息和公积金信息，包括但不限于缴费状态、缴费额度、缴费年限和缴费<span></span>单位等；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （5）本人的通讯号码、在网时长、联系地址、消费记录、欠费信息等通讯信息；
            </p>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              （6）本人在贵行开立的账户信息，包括但不限于账户余额、账户状态和账户交易流水<span></span>信息等。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              四、在授信业务有效期限内或在业务存续期内可以随时查询本人的征信信息，并将查询结果
              用于评价本人的信用状况、授信审批及贷后管理等。
            </p>
          </div>
          <div>
            <p style="font-size: 16px;
                      text-indent: 0em;
                      margin-top: 10px;
                      text-indent:2em;">
              五、保管业务办理中获取的授权书以及本人相关信息。由于通过网络、手机提供和传输信息存
              在特定的泄密风险，本人已经充分考虑到该风险，愿意承担该风险并使用贵行的服务，
              如果因网络、手机传输通讯故障、计算机病毒感染、黑客攻击窃取资料等贵行无法控制的不可抗<span></span>
              因素导致个人隐私泄露等后果，由本人自行承担。
            </p>
          </div>
          <p style="font-size: 16px;
                      text-indent: 0em;
                      font-weight: bold;
                      margin-top: 10px;
                      text-indent:2em;">
            本人声明：本人已仔细阅读上述所有条款。贵行已经依法向本人提示了相关条款并做出了相应<span></span>说明。
            本人已经完全知悉并充分理解本授权书条款的内容及相应的法律后果，并愿意接受本授权书条款<span></span>的约定。
          </p>
          <p>本人姓名：{{baseInfo.custName}}</p>
          <p>证件名称及号码：{{baseInfo.custId}}</p>
          <p>授权书生效日期：{{nowDate}}</p>

        </section>
        <div style="width: 100%;text-align:center;margin: 10px 0;">
          <van-button v-if="readedButtonShow" type="primary" :disabled="canConfirm" @click="subInfo('guaranteePdf')">{{confirmText}}
          </van-button>
          <van-button v-if="zxBackButtonShow" type="primary" @click="closeInfo">返回
          </van-button>
        </div>
      </van-popup>

      <van-action-sheet v-model="areaShow">
        <van-picker title="请选择区域" show-toolbar :columns="areaColumns" @confirm="areaConfirm" @cancel="areaCancel"
          @change="areaChange" />
      </van-action-sheet>
      <van-action-sheet v-model="streetShowTip">
        <van-picker title="请选择乡镇/街道" show-toolbar :columns="streetColumns" @confirm="streetConfirm"
          @cancel="streetCancel" @change="streetChange" />
      </van-action-sheet>
      <van-action-sheet v-model="bankShow">
        <van-picker title="请选择网点" show-toolbar :columns="bankColumns" @confirm="bankConfirm" @cancel="bankCancel"
          @change="bankChange" />
      </van-action-sheet>
      <van-action-sheet v-model="khjlShow">
        <van-picker title="请选择客户经理" show-toolbar :columns="khjlColumns" @confirm="khjlConfirm" @cancel="khjlCancel"
          @change="khjlChange" />
      </van-action-sheet>
      <!--一级支行选择-->
      <van-action-sheet v-model="firstOrgShow">
        <van-picker title="请选择办理机构" show-toolbar :columns="firstOrgColumns" @confirm="firstOrgConfirm" @cancel="firstOrgCancel"
                    @change="firstOrgChange" />
      </van-action-sheet>
    </van-skeleton>

  </div>
  <script type="text/javascript" src="js/vue.js"></script>
  <script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
  <script type="text/javascript" src="vant/vant.min.js"></script>
  <script type="text/javascript" src="js/util.js"></script>
  <script type="text/javascript" src="../js/sm2/crypto-js.js"></script>
  <script type="text/javascript" src="../js/sm2/sm2.js"></script>
  <script type="text/javascript" src="../js/sm4/sm4.js"></script>
  <script type="text/javascript" src="js/api.js"></script>
  <script type="text/javascript" src="js/jweixin-1.4.0.js"></script>
  <script type="text/javascript" src="js/loan.js"></script>
  <script type="text/javascript" src="../../app/js/aes.js"></script>
  <script type="text/javascript" src="../../app/js/rsa.js"></script>
  <script type="text/javascript" src="js/element.js"></script>
  <script type="text/javascript" src="../../app/js/tel.js"></script>

  <script>
    var app = new Vue({
      el: "#app",
      data: function () {
        return {
          firstStep: false,
          secondStep: false,
          thirdStep: false,
          showRelation: false,
          showStreet: false,
          showArea: false,
          showJwh: false,
          streetShow: false,
          jwhShow: false,
          // logoUrl: 'img/logo/wf_logo.png',
          logoUrl:'',
          nameLogoUrl: '',
          // nameLogoUrl: 'img/newPage/name_wf.png',
          bankName: "",
          tel: '022-3456789',
          aTelColor:'#0c80fe',
          orgId: '',
          bg1: '',
          title: '003',
          //kfPhone:'',
          result: false,
          nowDate: '',//当前时间
          imgFront: {
            src: './img/imgFront.png',
            type: '1',
            success: false,
            file: []
          },
          // checked: true,
          empowerShow: false,//征信授权书显隐性
          guaranteeShow: false,//再担保授权书显隐性
          readedButtonShow: true,//阅读完协议按钮显隐性
          zxBackButtonShow: false,//征信阅读返回按钮显隐性
          safeShow: false,
          isEmpower: false,
          loading: true,//骨架屏加载
          active: 0,
          canSendCode: false,//是否可以发送验证码
          sendText: '发送验证码',
          areaData: [],
          area: [],
          street: [],
          areaId: '',
          streetId: '',
          jwh: [],
          jwhId: '',
          addressId: "",//山东省潍坊市
          signID: "",
          encryptKey: "",//参数加密
          confirmText: '',////开始倒计时参数
          canConfirm: true,
          timer: undefined,
          count: 10, ///倒计时参数结束
          /*下面是区域*/
          orgCd: '',
          areaShow: false,
          streetShowTip: false,
          bankShow: false,
          khjlShow: false,
          areaColumns: [],
          streetColumns: [],
          bankColumns: [],
          khjlColumns: [],
          /*区域选择结束*/
          /*一级支行选择*/
          firstOrgShow: false,
          firstOrgColumns: [],
          /*一级支行选择结束*/
          //newOld: true,  //区域选择用新页面,pageCode = 2时,newOld = true用新页面,pageCode = 1时 newOld = false用旧页面
          pageCode: '',//替代newOld字段
          loanTermSwitch: false,//贷款期限开关
          showLoanTerm: false,//贷款期限选项显示
          isWhiteList: false,//是否是白名单客户
          loanFailTips:'',//申贷失败提示内容
          hidshow:true,  //显示或者隐藏footer*/
          baseInfo: {
            custName: '',
            custId: '',
            custPhone: '',
            custAddress: '',
            custArea: '',
            custAreaValue: '',
            custStreet: '',
            custJwh: '',
            familyName: '',
            familyId: '',
            familyPhone: '',
            familyRelationName: '',
            familyRelation: '',
            detailAdd: '',
            phoneCode: '',
            khjlNum: '',
            custType: '',
            custCode: '',
            isFamily: '',//T是家庭成员
            isMarriage : false,//是否已婚
            /*区域选择参数*/
            areaId: "",//区域id
            areaName: "",//区域名称
            streetName: "",//街道
            street: "",//街道
            wdIdName: "",//网点
            wdId: "",//网点
            khjlName: "",//客户经理Id
            khjlId: "",
            /*潍坊农商行一级支行选择*/
            firstOrgCd: '',
            firstOrgName: '',
            loanTermValue:'',//贷款期限
            loanTermName: '',//贷款期限值

            RegNum: '',//营业执照
            Name:'',
            Capital:'',
            Person: '',
            Address:'',
            Business: '',
            Type:'',
            Period:'',
            ComposingForm:'',
            ocrImg:'',//营业执照base64
            licenceId:'',
            companyName:'',//公司名称
            regNum:'',//统一社会信用编码
            setDate:'',//注册时间

          },
          relation: [
            {
              name: '父母',
              value: 'parent'
            },
            {
              name: '配偶',
              value: 'marriage'
            },
            {
              name: '子女',
              value: 'child'
            }
          ],
          show1: false,
          phone: '',
          style: 3,
          buttonColor: {
            0: "#0c80fe",
            2: "#e60012",
            3: "#e60012"
          },
          firstNextButton: '下一步',
          loanTerm: [
            {
              name: '12个月',
              value: '12'
            },
            {
              name: '60个月',
              value: '60'
            }
          ],
          outSign:false,//超出电子签名有效期
          outReGuarantee:false,//超出再担保合同有效期
          kdregister:{},
        }
      },
      watch: {},
      computed: {
        style0: function () {
          console.log(this.style)
          return this.style == 0
        },
        style2: function () {
          return this.style == 2
        },
        style3: function () {
          return this.style == 3
        },
      },
      created: function () {
        getLogo(this)
        var that = this;
        //add by wjkun 20200917
        that.startJishi();
        /*获取省市区街道*/
        var addressUrl = '/eims/individualBusiness/getAConnXzqh';
        var addressParam = {};
        var arrmin = {
          name: '',
          value: ''
        }
        getRequestResult(addressParam, addressUrl).then(function (data) {
          that.baseInfo.custAddress = data.data.ssq;
          var arrmin = [];
          that.areaData = data.data.xzqhList;
          that.baseInfo.addressId = data.data.qDicId
          // that.baseInfo.productType= data.data.productType
          if (data.code == '0') {
            // console.log("获取到的区域信息:" + data.data.xzqhList);
            if (data.data.xzqhList != undefined) {
              for (var i = 0; i < data.data.xzqhList.length; i++) {
                if (data.data.xzqhList[i].dicParentid == data.data.qDicId) {
                  arrmin = {
                    name: '',
                    value: ''
                  }
                  arrmin.name = data.data.xzqhList[i].dicName;
                  arrmin.value = data.data.xzqhList[i].dicId;
                  that.area.push(arrmin)
                }
              }
            }
            console.log(that.areaData)
            console.log(that.area)
            //add by wjkun 20200427 回显上次填写的客户地址信息
            console.log("客户临时信息L:" + data.data.TmpAddressInfo);
            var addressInfo = data.data.TmpAddressInfo;
            if (addressInfo != null && addressInfo != undefined) {
              that.streetShow = true;
              that.baseInfo.custArea = data.data.TmpAddressInfo.custArea;
              that.baseInfo.custStreet = data.data.TmpAddressInfo.custStreet;
              that.baseInfo.custAreaValue = data.data.TmpAddressInfo.area2;
              that.streetId = data.data.TmpAddressInfo.area3;
              that.baseInfo.detailAdd = data.data.TmpAddressInfo.detailAdd;
              that.baseInfo.khjlNum = data.data.TmpAddressInfo.khjlNum;
              that.baseInfo.areaId = data.data.TmpAddressInfo.areaId;//区域id
              that.baseInfo.areaName = data.data.TmpAddressInfo.areaName;//区域名称
              that.baseInfo.streetName = data.data.TmpAddressInfo.streetName;//街道
              that.baseInfo.street = data.data.TmpAddressInfo.street;//街道ID
              that.baseInfo.wdIdName = data.data.TmpAddressInfo.wdIdName;//网点
              that.baseInfo.wdId = data.data.TmpAddressInfo.wdId;//网点ID
              that.baseInfo.khjlName = data.data.TmpAddressInfo.khjlName;//客户经理
              that.baseInfo.khjlId = data.data.TmpAddressInfo.khjlId;//客户经理Id
              that.getWd({
                street: that.baseInfo.street
              })
              that.getKhjl({
                wdId: that.baseInfo.wdId
              })
              if (that.orgId == '239009999') {
                that.getTown({
                  pid: that.baseInfo.areaId
                })
              }
            }
            var companyInfo = data.data.TmpCompanyInfo;
            if (companyInfo != null && companyInfo != undefined) {
              that.baseInfo.companyName = data.data.TmpCompanyInfo.companyName;//个体工商户
              that.baseInfo.regNum = data.data.TmpCompanyInfo.regNum;//社会同一社会编码
              that.imgFront.src =data.data.TmpCompanyInfo.ocrImg;
              that.baseInfo.ocrImg=data.data.TmpCompanyInfo.ocrImg;
            }
            //add by wjkun 20200427 end
          } else {
            //add by 20201117获取行政区划失败，但是也回显上次填写信息
            // console.log("客户临时信息L:" + data.data.TmpAddressInfo);
            var addressInfo = data.data.TmpAddressInfo;
            if (addressInfo != null && addressInfo != undefined) {
              that.streetShow = true;
              that.baseInfo.custArea = data.data.TmpAddressInfo.custArea;
              that.baseInfo.custStreet = data.data.TmpAddressInfo.custStreet;
              that.baseInfo.custAreaValue = data.data.TmpAddressInfo.area2;
              that.streetId = data.data.TmpAddressInfo.area3;
              that.baseInfo.detailAdd = data.data.TmpAddressInfo.detailAdd;
              that.baseInfo.khjlNum = data.data.TmpAddressInfo.khjlNum;
              that.baseInfo.areaId = data.data.TmpAddressInfo.areaId;//区域id
              that.baseInfo.areaName = data.data.TmpAddressInfo.areaName;//区域名称
              that.baseInfo.streetName = data.data.TmpAddressInfo.streetName;//街道
              that.baseInfo.street = data.data.TmpAddressInfo.street;//街道ID
              that.baseInfo.wdIdName = data.data.TmpAddressInfo.wdIdName;//网点
              that.baseInfo.wdId = data.data.TmpAddressInfo.wdId;//网点ID
              that.baseInfo.khjlName = data.data.TmpAddressInfo.khjlName;//客户经理
              that.baseInfo.khjlId = data.data.TmpAddressInfo.khjlId;//客户经理Id
              that.getWd({
                street: that.baseInfo.street
              })
              that.getKhjl({
                wdId: that.baseInfo.wdId
              })
              if (that.orgId == '239009999') {
                that.getTown({
                  pid: that.baseInfo.areaId
                })
              }
            }
              var companyInfo = data.data.TmpCompanyInfo;
              if (companyInfo != null && companyInfo != undefined) {
                  that.baseInfo.companyName = data.data.TmpCompanyInfo.companyName;//个体工商户
                  that.baseInfo.regNum = data.data.TmpCompanyInfo.regNum;//社会同一社会编码
                  that.imgFront.src =data.data.TmpCompanyInfo.ocrImg;
                  that.baseInfo.ocrImg=data.data.TmpCompanyInfo.ocrImg;
              }
            /////add by 20201117 end
            Vant.$toast("获取行政区划失败")
            console.log("获取行政区划失败")
          }
          //缓存中的手机号
          that.baseInfo.khjlNum = data.data.wmpPhone;
        }).catch(function (error) {
          console.log(error)
          Vant.$toast("网络错误")
        })
        this.nowDate = CurentTime();
        that.getArea()
        /*查询认证信息*/
        var url = '/eims/individualBusiness/getGjjSfyz';
        var param = {};
        getRequestResult(param, url).then(function (data) {
          that.kdregister = data.data.KdRegister;
          if (data.code == '-1' && data.data.outDate) {
            console.log("证件过期，重定向到首页");
            window.location.href = './index.html?errMsg=2';
          } else {
            if (data.code == '-1' && data.data.KdRegister.csridcard != '') {
              that.baseInfo.custName = data.data.KdRegister.csrName;
              that.baseInfo.custId = data.data.KdRegister.csridcard;
              that.baseInfo.custPhone = data.data.KdRegister.mobile;
            }
            that.outSign = data.data.outSign;
            that.outReGuarantee = data.data.outReGuarantee;
            // console.log("data.data.KdRegister.eAccountId : "+data.data.KdRegister.eAccountId);
            // console.log("data.data.KdRegister.reGuarantee : "+data.data.KdRegister.reGuarantee);

            if (data.data.KdRegister.eAccountId == '' || data.data.KdRegister.eAccountId == undefined){
              that.empowerShow = true;
              that.isEmpower = true;
            }
            //addby zhangyang 2021.11.16 再担保暂时不上线
            // else if (data.data.KdRegister.reGuarantee == '' || data.data.KdRegister.reGuarantee == undefined){
            //   if (data.data.outSign == true){
            //     that.empowerShow = true;
            //     that.isEmpower = true;
            //   }else {
            //     that.empowerShow = false;
            //     that.guaranteeShow = true;
            //     that.isEmpower = true;
            //   }
            // }
            else {
              //addby zhangyang 判断是否超过设置期限，如果超过，重新签名，若都未超过，需要判断下一步
              if (data.data.KdRegister.eAccountId != '' && data.data.outSign == true){//重新签署征信授权书
                that.empowerShow = true;
                that.isEmpower = true;
              }
              //addby zhangyang 2021.11.16 再担保暂时不上线
              // else if (data.data.KdRegister.reGuarantee != '' && data.data.outSign == false && data.data.outReGuarantee == true){//重新签署再担保协议
              //   that.empowerShow = false;
              //   that.guaranteeShow = true;
              //   that.isEmpower = true;
              // }
              else {
                //未超过
                var signResult = data.data.signResult;
                console.log(signResult);
                if (signResult != undefined){
                  that.custInfomation(signResult);
                }
              }
            }
          }
        }).catch(function (error) {
          console.log(error)
          Vant.$toast("网络错误")
          //TODO
          that.empowerShow = true;
        })
      },
      mounted: function () {
        setTimeout(() => {
          this.loading = false;
        }, 500);
      },
      methods: {
        close(action, done) {
          if (this.show1) {
            done(false);
          } else {
            done();
          }
        },
        /* 上传本地图片 */
        getUpload: function (item) {
          var that = this;
          var imgSrc = '/eims/individualBusinessOcr/getLicenceOCR.do';
          var imgParam = {};
          getLocalImage().then(function(res){
            var showSrc = res;
            if(item.type=='1'){ //上传正面营业执照
              imgParam = {
                ocrImg : res
              };
              getRequestResult(imgParam,imgSrc).then(function(imgRes){
                console.log(""+imgRes)
                if(imgRes.code == "200") {
                 //  that.baseInfo.licenceId= imgRes.datas.id;
                  that.baseInfo.regNum = imgRes.datas.regNum;
                  that.baseInfo.companyName= imgRes.datas.companyName;
                  that.baseInfo.setDate = imgRes.datas.setDate;
                  that.imgFront.src =showSrc;
                  that.baseInfo.ocrImg=showSrc;
                  that.imgFront.success =true;
                }else {
                  that.imgFront.success =false;
                  // Vant.$toast(imgRes.datas.retmsg);
                  Vant.$toast(imgRes.message);
                }
              }).catch(function(error){
                console.log(error)
                Vant.$toast("网络错误");
              })
            }
          })
        },
        //wjkun 20200917
        startJishi() {
          this.dialogVisible = !this.dialogVisible
          this.count = 10
          this.jishi()
        },
        jishi() {
          this.timer = setInterval(() => {
            if (this.count == 1) {
              this.count = 1;
              clearInterval(this.timer);
              this.timer = undefined;
              this.canConfirm = false;
              this.confirmText = "我已阅读并同意以上协议";
            } else {
              this.canConfirm = true;
              this.count--;
              this.confirmText = this.count + " S ";
            }
          }, 1000);
        },

        //wjkun 20200917
        /*阅读完征信授权书*/
        subInfo: function (id) {
          var that = this;
          var newDate = new Date();
          var nowTime = newDate.getHours();
          if (nowTime >= 20 || nowTime < 9) {
            that.$message({
              showClose: true,
              message: '系统服务时间为：9:00-20:00',
              type: 'error'
            });
            return false;
          }
          if (that.isEmpower) {
            var outerHTML = $("#"+id).html();
            outerHTML = outerHTML.replace(/<span><\/span>/g, '<p><\/p>')
            var data = {
              text: outerHTML,
              name: that.baseInfo.custName,
              idNo: that.baseInfo.custId,
              productType: that.title
            };
            var url = '';
            //这里 暂时走再担保合同的流程 addby zhangyang
            // if (id == 'guaranteePdf'){
              url = '/eims/individualBusinessOcr/acceptReGuarantee';
            // }else {
            //   url = '/eims/individualBusinessOcr/acceptPage';
            // }
            getRequestResult(data, url).then(function (data) {
              that.signID = data.datas
              //that.empowerShow= !that.empowerShow;
              if (data.code == "500") {
                console.log(data.code)
                // that.checked = false;
                that.empowerShow = true;
                that.isEmpower = true;
                Vant.$toast(data.message);
                return false;
              } else {
                //2021.11.16 农商行暂时不签署再担保协议  addby zhangyang
               // if('boardPdf'==id){
               //   if (that.kdregister.reGuarantee == '' || that.kdregister.reGuarantee == undefined){
               //     that.empowerShow = false;
               //     that.guaranteeShow = true;
               //     that.isEmpower = true;
               //     that.startJishi();
               //   }else if (that.outReGuarantee){
               //     that.empowerShow = false;
               //     that.guaranteeShow = true;
               //     that.isEmpower = true;
               //     that.startJishi();
               //   }else {
               //     that.custInfomation(data);
               //   }
               //
               //
               // }else{
                  that.custInfomation(data);
               // }
                //add by wjkun 20201228 婚姻状态 end
              }
            }).catch(function (error) {
              console.log(error)
              Vant.$toast("网络错误")
              return false;
            })
          }
        },
        custInfomation:function (data){
          var that = this;
          //add by wjkun 20200428 电子签名完成后，查询客户是否是存量客户，如果是，直接发送申贷请求，如果不是，保持当前逻辑
          that.baseInfo.custType = data.data.custType;
          that.baseInfo.custCode = data.data.custCode;
          //that.newOld = data.data.pageCode == '1' ? false : true;
          that.pageCode = data.data.pageCode;
          that.baseInfo.isFamily = data.data.isFamily;
          that.baseInfo.isMarriage = data.data.isMarriage;
          var tmpLoanTermSwitch = data.data.loanTermSwitch == 'open' ? true : false;//法人贷款期限开关
          that.isWhiteList = data.data.isWhiteList == 'true' ? true : false;//是否是白名单客户
          console.log("是否是白名单客户:" + that.isWhiteList);
          if (tmpLoanTermSwitch && !that.isWhiteList) {
            that.loanTermSwitch = true;
          }
          console.log(that.baseInfo.isFamily);
          if (that.baseInfo.custCode == "0") {
            console.log("新客户");
            that.empowerShow = false;
            that.guaranteeShow = false;
            that.active = 0;
            that.firstStep = true;
            // that.checked = true;
            if (that.baseInfo.isFamily == 'T') {
              that.firstNextButton = "提交";
            }
            //add by wjkun 20210224查询一级支行
            if (that.pageCode == '3') {
              that.getfirstOrg();
            }
            //add by wjkun 20210224查询一级支行 end
          } else if (that.baseInfo.custCode == "1") {
            console.log("存量客户");
            //add by wjkun 20200203 存量客户，进入到区域选择页面（不显示区域信息），直接提交申贷信息
            //that.show1 = true
            that.empowerShow = false;
            that.guaranteeShow = false;
            that.active = 0;
            that.firstStep = true;
            // that.checked = true;
            that.firstNextButton = "提交";
          } else if (that.baseInfo.custCode == "2") {
            console.log("存量客户，v贷不完整");
            that.empowerShow = false;
            that.guaranteeShow = false;
            that.active = 0;
            that.firstStep = true;
            that.checked = true;
            if (that.baseInfo.isFamily == 'T') {
              that.firstNextButton = "提交";
            }
          }
          //add by wjkun 20200428 end
          //add by wjkun 20201228 婚姻状态
          if (that.baseInfo.isMarriage ) {
            that.relation = [
              {
                name: '配偶',
                value: 'marriage'
              },
            ]
          }
        //add by wjkun 20201228 婚姻状态 end
        },
        closeInfo: function () {
          this.empowerShow = !this.empowerShow;
        },

        firstNext: function () {
          let that = this;
          if (that.baseInfo.ocrImg == "" || that.baseInfo.ocrImg == null ||  that.baseInfo.ocrImg == undefined) {
            Vant.$toast('请上传营业执照！');
            return false;
          }
          if (that.baseInfo.companyName == "" || that.baseInfo.companyName == null ||  that.baseInfo.companyName == undefined) {
            Vant.$toast('请输入企业全称！');
            return false;
          }
          if (that.baseInfo.regNum == "" || that.baseInfo.regNum == null ||  that.baseInfo.regNum == undefined) {
            Vant.$toast('请输入统一社会信用代码！');
            return false;
          }

          var url = '/eims/individualBusiness/saveTmpCompanyInfo';
          var params = {
            "companyName": that.baseInfo.companyName,
            "regNum": that.baseInfo.regNum,
            "ocrImg":that.baseInfo.ocrImg
          };
          getRequestResult(params, url).then(function (data) {
            console.log(data);
            if (data.code == "200") {
              console.log("个体工商临时信息保存成功 ");
            } else {
              console.log("个体工商临时信息保存失败 ");
              return false;
            }
          }).catch(function (error) {
            console.log(error)
            Vant.$toast("网络错误")
          })
          this.firstStep = false;
          this.secondStep = true;
        },
        secondNext: function () {
          var that = this;
          if (!that.isWhiteList && that.pageCode == '1' && (that.baseInfo.custArea == null || that.baseInfo.custArea == "" || that.baseInfo.custArea == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('区域选择不能为空！');
            return false;
          }
          if (!that.isWhiteList && that.pageCode == '1' && (that.baseInfo.custStreet == null || that.baseInfo.custStreet == "" || that.baseInfo.custStreet == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('街道/乡镇不能为空！');
            return false;
          }

          if (!that.isWhiteList && that.pageCode == '1' && (that.baseInfo.detailAdd == null || that.baseInfo.detailAdd == "" || that.baseInfo.detailAdd == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('详细地址不能为空！');
            return false;
          }
          if (that.orgCd == '239009999' && that.pageCode == '2' && (that.baseInfo.areaId == null || that.baseInfo.areaId == "" || that.baseInfo.areaId == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('区域不能为空！');
            return false;
          }
          if (that.pageCode == '2' && (that.baseInfo.street == null || that.baseInfo.street == "" || that.baseInfo.street == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('街道不能为空！');
            return false;
          }
          if (that.pageCode == '2' && (that.baseInfo.wdId == null || that.baseInfo.wdId == "" || that.baseInfo.wdId == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('网点不能为空！');
            return false;
          }
          if (that.pageCode == '2' && (that.baseInfo.khjlId == null || that.baseInfo.khjlId == "" || that.baseInfo.khjlId == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('客户经理不能为空！');
            return false;
          }
          if (that.baseInfo.khjlNum != '' && that.baseInfo.khjlNum != undefined && !validatemobile(that.baseInfo.khjlNum)) {
            Vant.$toast('请正确填写营销人员手机号！');
            return false;
          }
          if (that.pageCode == '3' && (that.baseInfo.firstOrgCd == null || that.baseInfo.firstOrgCd == "" || that.baseInfo.firstOrgCd == undefined) && that.baseInfo.custCode == "0") {
            Vant.$toast('办理机构不能为空！');
            return false;
          }
          /*贷款期限*/
          if (  that.loanTermSwitch && ( that.baseInfo.loanTermValue == null || that.baseInfo.loanTermValue == "" || that.baseInfo.loanTermValue == undefined ) ) {
            Vant.$toast('请选择贷款期限');
            return false;
          }

          that.secondStep = false;
          //add by wjkun 20200427保存客户填写的地址信息和客户经理电话
          console.log("区域:" + that.baseInfo.custArea + "街道:" + that.baseInfo.custStreet + "详细地址:" + that.baseInfo.detailAdd + "客户经理电话:" + that.baseInfo.khjlNum)
          var url = '/eims/individualBusiness/saveTmpAddressInfo';
          var params = {
            "custArea": that.baseInfo.custArea,
            "custStreet": that.baseInfo.custStreet,
            "detailAdd": that.baseInfo.detailAdd,
            "area1": that.baseInfo.addressId,
            "area2": that.baseInfo.custAreaValue,
            "area3": that.streetId,
            "khjlNum": that.baseInfo.khjlNum,
            /*新区域字段*/
            "areaId": that.baseInfo.areaId,//区域id
            "areaName": that.baseInfo.areaName,//区域名称
            "streetName": that.baseInfo.streetName,//街道
            "street": that.baseInfo.street,//街道
            "wdIdName": that.baseInfo.wdIdName,//网点
            "wdId": that.baseInfo.wdId,//网点
            "khjlName": that.baseInfo.khjlName,//客户经理Id
            "khjlId": that.baseInfo.khjlId,
          };
          getRequestResult(params, url).then(function (data) {
            console.log(data)
            if (data.code == "200") {
              console.log("保存成功 ");
            } else {
              console.log("保存失败 ");
              return false;
            }
          }).catch(function (error) {
            console.log(error)
            Vant.$toast("网络错误")
          })
          //add by wjkun 20200427 end
          if (that.baseInfo.custCode == '1') {
            console.log("客户属于存量客户，点击提交直接提交申贷信息")
            var key = getKey();
            var encryptKey = RSA(key);
            var name = that.baseInfo.custName;
            var idCard = that.baseInfo.custId;
            var phone = that.baseInfo.custPhone;
            var productType = that.title;
            var khjlNum = that.baseInfo.khjlNum;
            var isFamily = that.baseInfo.isFamily;
            var loanTerm = that.baseInfo.loanTermValue;
            var companyName = that.baseInfo.companyName;
            var regNum = that.baseInfo.regNum;
            // var  productType = that.baseInfo.productType;
            name = AESEnc(key, name);
            idCard = AESEnc(key, idCard);
            phone = AESEnc(key, phone);
            custType = AESEnc(key, that.baseInfo.custType);
            khjlNum = AESEnc(key, khjlNum);
            isFamily = AESEnc(key, isFamily);
            loanTerm = AESEnc(key, loanTerm);
            companyName = AESEnc(key, companyName);
            regNum =  AESEnc(key, regNum);
            // productType =  AESEnc(key, productType);
            var param = {
              name: name,
              idCard: idCard,
              phone: phone,
              // productType: productType,
              "existCustomerType": custType,
              encryptKey: encryptKey,
              khjlNum: khjlNum,
              isFamily: isFamily,
              loanTerm: loanTerm,
              companyName:companyName,
              regNum:regNum
            };
            var url = '/eims/individualBusiness/existCustApply';
            getRequestResult(param, url).then(function (data) {
              console.log("existCustApply" + JSON.stringify(data))
              if (data.code == "0") {
                that.active = 1;
                that.result = true;
                that.firstStep = false;
                that.secondStep = false;
                that.empowerShow = false;
              } else if (data.code == "-1") {
                that.empowerShow = false;
                //Vant.$toast(data.message);
                that.active = 1;
                that.result = false;
                that.loanFailTips = data.message;
                return false;
              } else {
                window.location.href = './loanProgress.html';
                return false;
                // that.active = 1;
                // that.result = false;
                // that.empowerShow= false;
                // Vant.$toast(data.message);
              }
            }).catch(function (error) {
              console.log(error)
              Vant.$toast("网络错误")
            })
          } else {
            //1add by wjkun 20201210 如果是家庭成员，直接提交信息
            if (that.baseInfo.isFamily == 'T') {
              that.secondStep = false;
              //add by wjkun 20200623 参数加密
              var key = getKey();
              var encryptKey = RSA(key);
              that.baseInfo.phoneCode = AESEnc(key, that.baseInfo.phoneCode);
              that.baseInfo.custName = AESEnc(key, that.baseInfo.custName);
              that.baseInfo.custId = AESEnc(key, that.baseInfo.custId);
              that.baseInfo.custPhone = AESEnc(key, that.baseInfo.custPhone);
              that.baseInfo.streetId = AESEnc(key, that.baseInfo.streetId);
              that.baseInfo.familyName = AESEnc(key, that.baseInfo.familyName);
              that.baseInfo.familyPhone = AESEnc(key, that.baseInfo.familyPhone);
              that.baseInfo.addressId = AESEnc(key, that.baseInfo.addressId);
              that.baseInfo.custAreaValue = AESEnc(key, that.baseInfo.custAreaValue);
              that.streetId = AESEnc(key, that.streetId);
              that.jwhId = AESEnc(key, that.jwhId);
              that.signID = AESEnc(key, that.signID);
              that.detailAdd = AESEnc(key, that.detailAdd);
              that.baseInfo.familyRelation = AESEnc(key, that.baseInfo.familyRelation);
              that.baseInfo.familyId = AESEnc(key, that.baseInfo.familyId);
              that.baseInfo.khjlNum = AESEnc(key, that.baseInfo.khjlNum);
              that.title = AESEnc(key, that.title);
              that.baseInfo.custType = AESEnc(key, that.baseInfo.custType);
              /*新老区域选择*/
              //that.newOld = AESEnc(key, that.newOld);
              that.pageCode = AESEnc(key, that.pageCode);
              that.baseInfo.areaId = AESEnc(key, that.baseInfo.areaId);//区域id
              that.baseInfo.street = AESEnc(key, that.baseInfo.street);//街道
              that.baseInfo.wdId = AESEnc(key, that.baseInfo.wdId);//网点
              that.baseInfo.khjlId = AESEnc(key, that.baseInfo.khjlId);//客户经理
              /*新老区域选择结束*/
              /*一级支行选择*/
              that.baseInfo.firstOrgCd = AESEnc(key, that.baseInfo.firstOrgCd);
              /*一级支行选择结束*/
              that.baseInfo.isFamily = AESEnc(key, that.baseInfo.isFamily);
              /*贷款期限*/
              that.baseInfo.loanTermValue = AESEnc(key, that.baseInfo.loanTermValue);
              that.baseInfo.companyName = AESEnc(key, that.baseInfo.companyName);
              that.baseInfo.regNum = AESEnc(key, that.baseInfo.regNum);
              // that.baseInfo.productType =  AESEnc(key, productType);
              that.encryptKey = encryptKey;
              var param = {
                companyName:that.baseInfo.companyName,
                regNum: that.baseInfo.regNum,
                // productType: that.baseInfo.productType,
                smscode: that.baseInfo.phoneCode,
                name: that.baseInfo.custName,
                idCard: that.baseInfo.custId,
                phone: that.baseInfo.custPhone,
                xzqhId: that.streetId,
                relaName: that.baseInfo.familyName,
                relaPhone: that.baseInfo.familyPhone,
                area1: that.baseInfo.addressId,
                area2: that.baseInfo.custAreaValue,
                area3: that.streetId,
                area4: that.jwhId,
                signId: that.signID,
                relaAddress: that.detailAdd,
                rela: that.baseInfo.familyRelation,
                relaIdCard: that.baseInfo.familyId,

                encryptKey: that.encryptKey,
                khjlNum: that.baseInfo.khjlNum,
                custType: that.baseInfo.custType,
                /*新老区域选择*/
                //newOld: that.newOld,
                pageCode: that.pageCode,
                areaId: that.baseInfo.areaId,
                street: that.baseInfo.street,
                wdId: that.baseInfo.wdId,
                khjlId: that.baseInfo.khjlId,
                /*新老区域选择结束*/
                /*一级支行选择*/
                firstOrgCd: that.baseInfo.firstOrgCd,
                /*一级支行选择结束*/
                isFamily: that.baseInfo.isFamily,
                /*贷款期限*/
                loanTerm: that.baseInfo.loanTermValue,
              };
              console.log(param)
              var url = '/eims/individualBusiness/zrAndEd';
              getRequestResult(param, url).then(function (data) {
                console.log(data)
                if (data.code == "0") {
                  that.active = 1;
                  that.result = true;
                  that.firstStep = false;
                  that.secondStep = false;
                } else if (data.code == "-1") {
                  //Vant.$toast(data.message);
                  that.active = 1;
                  that.result = false;
                  that.loanFailTips = data.message;
                  return false;
                } else {
                  that.active = 1;
                  that.result = false;
                  that.loanFailTips = data.message;
                  //Vant.$toast(data.message);
                }
              }).catch(function (error) {
                console.log(error)
                Vant.$toast("网络错误")
              })
            } else {
              that.thirdStep = true;
            }
            //1add by wjkun 20201210 end
          }

        },
        /*
          授权下一步
        */
        empowerNext: function () {
          var newDate = new Date();
          var nowTime = newDate.getHours();

          if (nowTime >= 20 || nowTime < 9) {
            this.$message({
              showClose: true,
              message: '系统服务时间为：9:00-20:00',
              type: 'error'
            });
            return false;
          }
          var that = this;
          var checkValue = '联系人';
          if (that.baseInfo.familyRelationName == "") {
            Vant.$toast('联系人关系不能为空！');
            return false;
          }
          if (!checkName(that.baseInfo.custName, '') || !checkName(that.baseInfo.familyName, checkValue)) {
            return false;
          }
          if (!checkCard(that.baseInfo.custId, '') || !checkCard(that.baseInfo.familyId, checkValue)) {
            return false;
          }
          if (!validatemobile(that.baseInfo.custPhone, '') || !validatemobile(that.baseInfo.familyPhone, checkValue)) {
            return false;
          }
          if (that.baseInfo.custId === that.baseInfo.familyId) {
            Vant.$toast('联系人身份证号不能与申请人相同！');
            return false;
          }

          if (GetAge(that.baseInfo.custId) < 18 || GetAge(that.baseInfo.custId) > 70) {
            Vant.$toast('年龄范围在18-70岁之间！');
            return false;
          }

          if (that.baseInfo.familyRelation == 'marriage') {
            if (getSexByIdCard(that.baseInfo.custId) === getSexByIdCard(that.baseInfo.familyId)) {
              Vant.$toast('配偶性别不能和申请人性别相同！');
              return false;
            }
          }
          if (that.baseInfo.familyRelation == 'parent') {
            // if (GetAge(that.baseInfo.custId) >= GetAge(that.baseInfo.familyId)) {
            if (GetBirth(that.baseInfo.custId) <= GetBirth(that.baseInfo.familyId)) {
              Vant.$toast('父母年龄不能低于申请人年龄！');
              return false;
            }
          }
          if (that.baseInfo.familyRelation == 'child') {
            // if (GetAge(that.baseInfo.familyId) >= GetAge(that.baseInfo.custId)) {
            if (GetBirth(that.baseInfo.familyId) <= GetBirth(that.baseInfo.custId)) {
              Vant.$toast('子女年龄不能大于申请人年龄！');
              return false;
            }
          }

          //add by wjkun 20200414 end
          //add by wjkun 20200623 参数加密
          var key = getKey();
          var encryptKey = RSA(key);
          that.baseInfo.phoneCode = AESEnc(key, that.baseInfo.phoneCode);
          that.baseInfo.custName = AESEnc(key, that.baseInfo.custName);
          that.baseInfo.custId = AESEnc(key, that.baseInfo.custId);
          that.baseInfo.custPhone = AESEnc(key, that.baseInfo.custPhone);
          that.baseInfo.streetId = AESEnc(key, that.baseInfo.streetId);
          that.baseInfo.familyName = AESEnc(key, that.baseInfo.familyName);
          that.baseInfo.familyPhone = AESEnc(key, that.baseInfo.familyPhone);
          that.baseInfo.addressId = AESEnc(key, that.baseInfo.addressId);
          that.baseInfo.custAreaValue = AESEnc(key, that.baseInfo.custAreaValue);
          that.streetId = AESEnc(key, that.streetId);
          that.jwhId = AESEnc(key, that.jwhId);
          that.signID = AESEnc(key, that.signID);
          that.detailAdd = AESEnc(key, that.detailAdd);
          that.baseInfo.familyRelation = AESEnc(key, that.baseInfo.familyRelation);
          that.baseInfo.familyId = AESEnc(key, that.baseInfo.familyId);
          that.baseInfo.khjlNum = AESEnc(key, that.baseInfo.khjlNum);
          that.title = AESEnc(key, that.title);
          that.baseInfo.custType = AESEnc(key, that.baseInfo.custType);
          /*新老区域选择*/
          //that.newOld = AESEnc(key, that.newOld);
          that.pageCode = AESEnc(key, that.pageCode);
          that.baseInfo.areaId = AESEnc(key, that.baseInfo.areaId);//区域id
          that.baseInfo.street = AESEnc(key, that.baseInfo.street);//街道
          that.baseInfo.wdId = AESEnc(key, that.baseInfo.wdId);//网点
          that.baseInfo.khjlId = AESEnc(key, that.baseInfo.khjlId);//客户经理
          /*新老区域选择结束*/
          /*一级支行选择*/
          that.baseInfo.firstOrgCd = AESEnc(key, that.baseInfo.firstOrgCd);
          /*一级支行选择结束*/
          that.baseInfo.isFamily = AESEnc(key, that.baseInfo.isFamily);
          /*贷款期限*/
          that.baseInfo.loanTermValue = AESEnc(key, that.baseInfo.loanTermValue);
          that.baseInfo.companyName = AESEnc(key, that.baseInfo.companyName);
          that.baseInfo.regNum = AESEnc(key, that.baseInfo.regNum);
          // that.baseInfo.productType = AESEnc(key, that.baseInfo.productType);
          that.encryptKey = encryptKey;
          var param = {
            regNum:that.baseInfo.regNum,
            // productType:that.baseInfo.productType,
            companyName:that.baseInfo.companyName,
            smscode: that.baseInfo.phoneCode,
            name: that.baseInfo.custName,
            idCard: that.baseInfo.custId,
            phone: that.baseInfo.custPhone,
            xzqhId: that.streetId,
            relaName: that.baseInfo.familyName,
            relaPhone: that.baseInfo.familyPhone,
            area1: that.baseInfo.addressId,
            area2: that.baseInfo.custAreaValue,
            area3: that.streetId,
            area4: that.jwhId,
            signId: that.signID,
            relaAddress: that.detailAdd,
            rela: that.baseInfo.familyRelation,
            relaIdCard: that.baseInfo.familyId,
            productType: that.title,
            encryptKey: that.encryptKey,
            khjlNum: that.baseInfo.khjlNum,
            custType: that.baseInfo.custType,
            /*新老区域选择*/
            //newOld: that.newOld,
            pageCode: that.pageCode,
            areaId: that.baseInfo.areaId,
            street: that.baseInfo.street,
            wdId: that.baseInfo.wdId,
            khjlId: that.baseInfo.khjlId,
            /*新老区域选择结束*/
            /*一级支行选择*/
            firstOrgCd: that.baseInfo.firstOrgCd,
            /*一级支行选择结束*/
            isFamily: that.baseInfo.isFamily,
            /*贷款期限*/
            loanTerm: that.baseInfo.loanTermValue,
          };
          console.log(param)
          var url = '/eims/individualBusiness/zrAndEd';
          getRequestResult(param, url).then(function (data) {
            console.log(data)
            if (data.code == "0") {
              that.active = 1;
              that.result = true;
              that.firstStep = false;
              that.secondStep = false;
            } else if (data.code == "-1") {
              //Vant.$toast(data.message);
              that.active = 1;
              that.result = false;
              that.loanFailTips = data.message;
              return false;
            } else {
              that.active = 1;
              that.result = false;
              that.loanFailTips = data.message;
              //Vant.$toast(data.message);
            }
          }).catch(function (error) {
            console.log(error)
            Vant.$toast("网络错误")
          })
        },
        getResult: function () {
          window.location.href = './index.html'
        },
        shouquanshu: function () {
          this.empowerShow = !this.empowerShow;
          this.nowDate = CurentTime();
          this.readedButtonShow = false;
          this.zxBackButtonShow = true;
        },
        selectArea: function (item) {
          this.showArea = false;
          this.baseInfo.custArea = item.name;
          this.baseInfo.custAreaValue = item.value;
          // 区域修改则街道和居委会清空
          this.baseInfo.custStreet = '';
          this.baseInfo.custJwh = '';
          if (item.value == 'xxxxxxxxxxx') {
            this.streetShow = false;
            this.jwhShow = false;
            this.jwhId = item.value
          } else {
            this.street = []
            for (var i = 0; i < this.areaData.length; i++) {
              if (this.areaData[i].dicParentid == this.baseInfo.custAreaValue) {
                arrmin = {
                  name: '',
                  value: ''
                }
                arrmin.name = this.areaData[i].dicName;
                arrmin.value = this.areaData[i].dicId;
                this.street.push(arrmin)
              }
            }
            this.streetShow = true;
          }
        },
        selectStreet: function (item) {
          this.showStreet = false;
          this.baseInfo.custStreet = item.name;
          this.streetId = item.value;
          var arrmin = {
            name: '',
            value: ''
          }
          this.jwh = [];
          this.baseInfo.custJwh = '';
          for (var i = 0; i < this.areaData.length; i++) {
            if (this.areaData[i].dicParentid == this.streetId) {
              arrmin = {
                name: '',
                value: ''
              }
              arrmin.name = this.areaData[i].dicName;
              arrmin.value = this.areaData[i].dicId;
              this.jwh.push(arrmin)
            }
          }
          // this.jwhShow = true;
        },
        selectJwh: function (item) {
          this.showJwh = false;
          this.baseInfo.custJwh = item.name;
          this.jwhId = item.value;
        },
        selectRelation: function (item) {
          this.showRelation = false;
          this.baseInfo.familyRelation = item.value;
          this.baseInfo.familyRelationName = item.name;
        },
        /*
          发送验证码
        */
        sendCode: function () {
          var that = this;
          if (!validatemobile(that.baseInfo.familyPhone)) {
            return false;
          } else {
            if (that.baseInfo.familyPhone === that.baseInfo.custPhone) {
              Vant.$toast('联系人手机号不能和申请人相同！');
              return false;
            }
            var param = {
              mobile: that.baseInfo.familyPhone
            };
            var url = '/eims/acfund/relaMobileCode';
            getRequestResult(param, url).then(function (data) {
              console.log('data', data)
              if (data.code == "0") {
                var time = 300;
                that.canSendCode = true;
                $("#MessageCode").html(time + '秒');
                time--;
                var interval = setInterval(function () {
                  if (time == 0) {
                    clearInterval(interval);
                    that.canSendCode = false;
                    $("#MessageCode").html('获取验证码');
                    $("#MessageCode").attr("onclick", 'sendCode()');
                  } else {
                    $("#MessageCode").attr("onclick", '');
                    $("#MessageCode").html(time + '秒');
                    time--;
                  }
                }, 1000);
                Vant.$toast(`短信验证码已成功发送至${that.baseInfo.familyPhone}`)
              } else {
                Vant.$toast(data.retmsg)
              }
            }).catch(function (error) {
              console.log('error', error)
              Vant.toast("网络错误")
            })

          }
        },
        // 查询区域
        getArea() {
          var that = this;
          var url = "/eims/individualBusinessArea/getArea";
          getRequestResult({}, url).then(function (data) {
            if (data.code == "0") {
              var resData = data.data.areaInfo;
              for (var i = 0; i < resData.length; i++) {
                resData[i].text = resData[i].areaname;
                delete resData[i]["children"];
              }
              if (that.orgCd != '239009999') {
                that.streetColumns = resData
              } else {
                that.areaColumns = resData
              }
            }
          }).catch(function (error) {
            console.log('error', error)
            Vant.toast("网络错误")
          })
        },
        // 选择区域
        areaConfirm(value, index) {
          this.baseInfo.areaName = value.text;
          this.baseInfo.areaId = value.id;
          this.areaShow = false;
          this.baseInfo.streetName = ''
          this.baseInfo.wdIdName = ''
          this.baseInfo.khjlName = ''
          let param = {
            pid: value.id
          }
          this.getTown(param)
        },
        // 根据区域ID获取街道信息
        getTown(param) {
          var that = this
          var url = "/eims/individualBusinessArea/getTown";
          getRequestResult(param, url).then(function (data) {
            if (data.code == '0') {
              var resData = data.data.townInfo;
              for (let i = 0; i < resData.length; i++) {
                resData[i].text = resData[i].areaname;
                delete resData[i]["children"];
              }
              that.streetColumns = resData;
            }
          }).catch(function (error) {
            console.log('error', error)
            Vant.toast("网络错误")
          })
        },
        areaChange(picker, value, index) {
        },
        areaCancel() {
          this.areaShow = false;
        },
        // 选择街道
        streetConfirm(value, index) {
          this.baseInfo.streetName = value.text;
          this.baseInfo.street = value.id;
          this.baseInfo.wdIdName = ''
          this.baseInfo.khjl = ''
          let param = {
            street: value.id
          }
          this.getWd(param);
          this.streetShowTip = false;
        },
        getWd(param) {
          // 根据街道获取网点信息
          var that = this
          var url = "/eims/individualBusinessArea/getWd";
          getRequestResult(param, url).then(function (data) {
            if (data.code == "0") {
              let resData = data.data.wdInfo;
              for (let i = 0; i < resData.length; i++) {
                resData[i].text = resData[i].ORG_ABB
              }
              that.bankColumns = resData
            } else {
              // that.$notify({
              //   type: 'danger', message: res.data.message
              // })
            }
          }).catch(function (error) {
            console.log('error', error)
            Vant.toast("网络错误")
          })
        },
        streetChange(picker, value, index) {
        },
        streetCancel() {
          this.streetShowTip = false;
        },
        // 选择网点
        bankConfirm(value, index) {
          this.baseInfo.wdIdName = value.text;
          this.baseInfo.wdId = value.ORG_CD;
          this.baseInfo.khjlName = ''
          let param = {
            wdId: value.ORG_CD
          }
          this.getKhjl(param);
          this.bankShow = false;
        },
        // 根据网点获取客户经理信息
        getKhjl(param) {
          var that = this
          var url = "/eims/individualBusinessArea/getKhjl";
          getRequestResult(param, url).then(function (data) {
            if (data.code == "0") {
              let resData = data.data.khjlInfo;
              for (let i = 0; i < resData.length; i++) {
                resData[i].text = resData[i].USER_NAME;
              }
              that.khjlColumns = resData;
            } else {
              // that.$notify({
              //   type: 'danger', message: res.data.message
              // })
            }
          }).catch(function (error) {
            console.log('error', error)
            Vant.toast("网络错误")
          })
        },
        bankChange(picker, value, index) {
        },
        bankCancel() {
          this.bankShow = false;
        },
        // 选择客户经理
        khjlConfirm(value, index) {
          this.baseInfo.khjlName = value.text;
          this.baseInfo.khjlId = value.MANAGERID;
          this.khjlShow = false;
        },
        khjlChange(picker, value, index) {
        },
        khjlCancel() {
          this.khjlShow = false;
        },
        <!--选择一级支行-->
        // 查询一级支行
        getfirstOrg() {
          var that = this;
          var url = "/eims/individualBusinessArea/getFirstOrg";
          getRequestResult({}, url).then(function (data) {
            if (data.code == "0") {
              var resData = data.data.orgInfo;
              for (var i = 0; i < resData.length; i++) {
                resData[i].text = resData[i].orgAbb;
                delete resData[i]["children"];
              }
              // if (that.orgCd != '239009999') {
              //   that.streetColumns = resData
              // } else {
              //   that.areaColumns = resData
              // }
              that.firstOrgColumns = resData;
            }
          }).catch(function (error) {
            console.log('error', error)
            Vant.toast("网络错误")
          })
        },
        firstOrgConfirm (value, index) {
          this.baseInfo.firstOrgName = value.orgAbb;
          this.baseInfo.firstOrgCd = value.orgCd;
          this.firstOrgShow = false;
        },
        firstOrgChange(picker, value, index) {
        },
        firstOrgCancel() {
          this.firstOrgShow = false;
        },
        selectLoanTerm: function (item) {
          this.showLoanTerm = false;
          this.baseInfo.loanTermValue = item.value;
          this.baseInfo.loanTermName = item.name;
        },
      }

    })
  </script>
</body>

</html>
